package com.qwz.learn;
/**
* @Description: 享元对象
* @Package com.qwz.learn.ConcreteFlyWeight
* @author Qiuwuzhi
* @date 2019/12/23 15:09
* @version V1.0
*/
public class ConcreteFlyWeight implements FlyWeight{
    /**
     * 描述内部状态
     */
    private String extrinsicState;

    /**
     * 传入享元对象的内部状态的数据
     * @param state
     */
    public ConcreteFlyWeight(String state) {
        this.extrinsicState = state;
    }

    public void operation(String extrinsicState) {
        //具体的功能处理，可能会用到享元内部、外部状态
    }
}
